package com.ruoyi.chatgpt.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * key对象 gpt_message
 * 
 * @author ruoyi
 * @date 2023-06-29
 */
public class GptMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** secret key */
    @Excel(name = "secret key")
    private Long chatId;

    /** 询问内容 */
    @Excel(name = "询问内容")
    private String askContent;

    /** 回答内容 */
    @Excel(name = "回答内容")
    private String answerContent;

    /** 状态 1-正常，2-用户删除 */
    @Excel(name = "状态 1-正常，2-用户删除")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setChatId(Long chatId) 
    {
        this.chatId = chatId;
    }

    public Long getChatId() 
    {
        return chatId;
    }
    public void setAskContent(String askContent) 
    {
        this.askContent = askContent;
    }

    public String getAskContent() 
    {
        return askContent;
    }
    public void setAnswerContent(String answerContent) 
    {
        this.answerContent = answerContent;
    }

    public String getAnswerContent() 
    {
        return answerContent;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("chatId", getChatId())
            .append("askContent", getAskContent())
            .append("answerContent", getAnswerContent())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
